﻿// Original author contact info: Owen Emlen (owene_1998@yahoo.com)
// Note: other individuals may also have contributed to this code
// Project hosted on CodePlex.com as of 1/10/2009 at http://www.codeplex.com/EmlenMud
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace BrainTechLLC
{
    [DataContract]
    public struct Int2
    {
        [DataMember]
        public long xy;
        public void SetXY(long v)
        {
            xy = v;
        }
        public void SetXY(int x, int y)
        {
            xy = x + (y << 31);
        }
        public bool Eq(Int2 other) { return xy == other.xy; }
    }
}
